﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ctrLKWSList.ascx.cs"
    Inherits="TCHSHue.Modules.AdminControl.LKWebSite.ctrLKWSList" %>
<div id="phuong" class="inbox">
    <h3 class="tieude">
        Danh sách các Website được liên kết</h3>
    <table style="width: 100%">
        <tr>
            <td colspan="2" class="line">
            </td>
        </tr>
    </table>
    <br />
    <asp:HyperLink ID="HyperLink1" CssClass="box add" NavigateUrl="~/Modules/Admin.aspx?mode=themlk"
        runat="server">Tạo mới</asp:HyperLink>
    <div class="tableAdmin">
        <asp:GridView ID="gridLK" runat="server" AutoGenerateColumns="False" EnableModelValidation="True">
            <Columns>
                <asp:BoundField DataField="tenHienThi" HeaderText="Tên Website" />
                <asp:BoundField DataField="url" HeaderText="URL" />
                <asp:TemplateField HeaderText="Thao tác">
                    <ItemTemplate>
                        <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Style/Images/edit.png"
                            CommandArgument='<%# Eval("maLK") %>' OnCommand="RedirectEdit" />
                        <asp:ImageButton ID="ImageButton2" CommandArgument='<%#Eval("maLK") %>' OnCommand="Delete"
                            OnClientClick="return confirm('Bạn có chắc muốn xóa?')" runat="server" ImageUrl="~/Style/Images/delete.png" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                Hiện tại không có liên kết nào
            </EmptyDataTemplate>
        </asp:GridView>
    </div>
</div>
